package com.hippo.core.controller;

import com.alibaba.fastjson.JSONObject;
import com.hippo.core.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author: hippo
 */
@RestController
public class HomeController {

    @Autowired
    private HomeService homeService;

    @GetMapping("/getHomeData/{id}")
    public JSONObject getHomeData(@PathVariable String id) {
        return homeService.getHomeData(id);
    }

}
